package vsvteam.outsource.leanappandroid.activity.valuestreammap;

import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import vsvteam.outsource.leanappandroid.actionbar.ChangeProjectActivity;
import vsvteam.outsource.leanappandroid.actionbar.ExportActivity;
import vsvteam.outsource.leanappandroid.actionbar.SettingActivity;
import vsvteam.outsource.leanappandroid.actionbar.VersionActivity;
import vsvteam.outsource.leanappandroid.activity.home.VSVTeamBaseActivity;
import vsvteam.outsource.leanappandroid.R;

public class DrawMapActivity extends VSVTeamBaseActivity implements OnClickListener{

	private ImageView btnSetting;
	private ImageView btnExport;
	private ImageView btnVersion;
	private ImageView btnChangedProject;
	@Override
	public void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.page_draw_map);
		intitalize();
	}
	private void intitalize() {
		btnChangedProject = (ImageView)findViewById(R.id.img_draw_map_change_project);
		btnChangedProject.setOnClickListener(this);
		btnExport = (ImageView)findViewById(R.id.img_draw_map_export);
		btnExport.setOnClickListener(this);
		btnSetting = (ImageView)findViewById(R.id.img_draw_map_setting);
		btnSetting.setOnClickListener(this);
		btnVersion = (ImageView)findViewById(R.id.img_draw_map_version);
		btnVersion.setOnClickListener(this);
		
	}
	@Override
	public void onClick(View view) {
		if (view == btnExport) {
			Intent intentExport = new Intent(DrawMapActivity.this, ExportActivity.class);
			startActivity(intentExport);
		} else if (view == btnSetting) {
			Intent intentSetting = new Intent(DrawMapActivity.this, SettingActivity.class);
			startActivity(intentSetting);
			Log.e("click setting", "ok");
		} else if (view == btnVersion) {
			Intent intentVersion = new Intent(DrawMapActivity.this, VersionActivity.class);
			startActivity(intentVersion);
		} else if (view == btnChangedProject) {
			Intent intentChangeProject = new Intent(DrawMapActivity.this,
					ChangeProjectActivity.class);
			startActivity(intentChangeProject);
		}
	}
}
